package com.idlecode.panel;

import com.idlecode.panel.tool.*;
import com.intellij.openapi.project.Project;

import javax.swing.*;
import java.awt.*;

/**
 * @program: IdleCode
 * @description
 * @author: rongjuwei
 * @create: 2024-10-23 11:56
 **/
public class ToolPanel extends JPanel {

    public ToolPanel(Project project) {
        // 垂直排列
        setLayout(new BorderLayout());
        JTabbedPane tabbedPane = new JTabbedPane();
        tabbedPane.addTab("清除BOM", new RemoveBomPanel(project));
        tabbedPane.addTab("SM加解密", new SMPanel());
        tabbedPane.addTab("UUID", new UUIdPanel());
        tabbedPane.addTab("Cron生成器", new CronPanel(project));
        tabbedPane.addTab("今日油价", new TodayOilPricesPanel());
        tabbedPane.addTab("时间戳转换", new TimestampPanel());
        add(tabbedPane, BorderLayout.CENTER);
    }
}
